package com.dzjcloud.dzj.gateway;

import com.dzjcloud.dzj.common.redis.annotation.EnableDzjRedis;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Import;
import org.springframework.http.codec.ServerCodecConfigurer;
import org.springframework.http.codec.support.DefaultServerCodecConfigurer;

/**
 * <h3>dzj-cloud</h3>
 * <p>网关应用</p>
 *
 * @author : DongZeJian
 * @date : 2021-04-29 16:32
 **/
@EnableDiscoveryClient
@SpringBootApplication
@Slf4j
@RefreshScope//开启热加载
@EnableDzjRedis
public class DzjGatewayApplication {

    public static void main(String[] args) {
        log.info("--------------------------------网关开始启动----------------------------------------");
        SpringApplication.run(DzjGatewayApplication.class,args);
        log.info("--------------------------------网关启动完成----------------------------------------");
    }
}
